package com.kaisu.blog.domain.storage;


import com.kaisu.blog.domain.file.File;

import java.io.InputStream;

/**
 * @author kaisu
 */
public interface Storage {
    /**
     * upload
     *
     * @param fileStream file stream
     * @param file       file
     */
    void upload(InputStream fileStream, File file);

    /**
     * get file path
     *
     * @param file file
     * @return path
     */
    String getPath(File file);

    /**
     * get preview path
     *
     * @param file file
     * @return preview path
     */
    String getPreviewPath(File file);
}
